package xiao.trip.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import xiao.trip.Do.happydo;
import xiao.trip.Do.saddo;

import java.util.List;

@Mapper
@Service
public interface happy {
    @Insert("insert into happy(happy) values (#{happy})")
    public void inserthappy(String happy);
    @Select("select happy from happy  limit 6")
    public List<happydo> selecthappy();
    @Insert("insert into sad(sad) values (#{sad})")
    public void insertsad(String sad);
    @Select("select sad from sad  limit 6")
    public List<saddo> selectsad();
}
